package com.trkj.popj;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Data
@Slf4j
@RequiredArgsConstructor
@NoArgsConstructor
//@Component("emp")//指定Bean的名字叫emp
@Component//默认情况下EmpVo Bean的名字叫empVo
public class EmpVo {
    @NonNull
    protected int empno;
    @NonNull
    protected String ename;
    public void work(){
        log.debug("work");
    }
}
